home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ MSI Options 4.xpl < prev    next >
Text File  |  1999-07-15  |  2KB  |  63 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Software Installation\Windows Installer"
  5. "NAME"="MSI Options - System"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Always install using privileged account"
  9. "TEXT 2"="Enable users to control installation"
  10. "TEXT 3"="Auto execute MSI files downloaded using IE (no warning)"
  11. "DESCRIPTION 1"="Internet Explorer 5, Office 2000 and Windows 2000 use a new standard for installing applications: the Windows Installer (aka MSI). "
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17. sPathSys="HKLM\Software\Policies\Microsoft\Windows\Installer\"
  18. sV1="AlwaysInstallElevated" 'DW - sys
  19. sV2="EnableUserControl" 'DW
  20. sV3="SafeForScripting" 'DW
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sPathSys & sV1)
  25.  if i=1 then setuielement 1,true
  26.  
  27.  i=RegReadValue(sPathSys & sV2)
  28.  if i=1 then setuielement 2,true
  29.  
  30.  i=RegReadValue(sPathSys & sV3)
  31.  if i=1 then setuielement 3,true
  32. End Sub
  33.  
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  b=GetUIElement(1)
  39.  if b=true then
  40.     Call RegWriteValue(sPathSys & sV1,1,2)
  41.  else
  42.     Call RegWriteValue(sPathSys & sV1,0,2)
  43.  end if
  44.  
  45.  b=GetUIElement(2)
  46.  if b=true then
  47.     Call RegWriteValue(sPathSys & sV2,1,2)
  48.  else
  49.     Call RegWriteValue(sPathSys & sV2,0,2)
  50.  end if
  51.  
  52.  b=GetUIElement(3)
  53.  if b=true then
  54.     Call RegWriteValue(sPathSys & sV3,1,2)
  55.  else
  56.     Call RegWriteValue(sPathSys & sV3,0,2)
  57.  end if
  58.  
  59. End Sub
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.